 /* package server;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ServerDatabaseConnection {

	private String url = "";
	private String code = "";
	private String pass = "";
	private Connection connection;

		public ContactwDB () {	
		}
		
		//Method for connect
		private void connect() {
			this.connection = ...
				return ;
		}
		//method for disconnect
	private void disconnect(){
		this.connection.close();
	}
		//method for insert
	private void insert (String persons, Map<String, Object> data){
		this.connect();
		this.connection....;
		this.disconnect();

			
		//Here must be methods for select, update, delete‏	
		
		private void select  ( String persons, Map<String, Object > data) {
			this.connect();
			this.connection
			String query = SELECT * FROM persons WHERE oprNavn="";
			this.disconnect();
			
			
		
		}
		
		private boolean update  ( String persons, Map<String, Object> data) {
			this.connect();
			this.connection
			this.disconnect();
		String 
			return true;
		}
		
		private boolean delete  ( String persons, Map<String, Object> data) {
			this.connect();
			this.connection
			this.disconnect();
			
			System.out.println("Connection was interrupted.");
			return true;
		
		}
		
	}
		
	
	
	}

		*/
	

